package com.test.intercepter;

import com.opensymphony.xwork2.ActionInvocation;
import com.opensymphony.xwork2.interceptor.MethodFilterInterceptor;

public class MyMethodIntercepter extends MethodFilterInterceptor
{

	@Override
	protected String doIntercept(ActionInvocation invocation) throws Exception
	{
		System.out.println("MyMethodIntercepter invoked ...");
		
		String result = invocation.invoke();
		
		System.out.println("MyMethodIntercepter, result: " + result);	
		return result;
	}

}
